import request from '@/utils/request'

//--- 用户列表------------------
export function userList(params) {
    return request({
      url: '/entrust/user/userList',
      method: 'get',
      params
    })
}
//左侧公司树状菜单 
export function companyList(params) {
  return request({
    url: '/entrust/company/companyList',
    method: 'get',
    params
  })
}
// 下级单位添加/entrust/company/companyAdd
export function companyAdd(data) {
  return request({
    url: '/entrust/company/companyAdd',
    method: 'post',
    data
  })
}
//添加用户 /entrust/user/userAdd
export function userAdd(data) {
  return request({
    url: '/entrust/user/userAdd',
    method: 'post',
    data
  })
}
//用户修改 /entrust/user/userUpdate
export function userUpdate(data) {
  return request({
    url: '/entrust/user/userUpdate',
    method: 'post',
    data
  })
}
// 用户删除
export function userDel(params) {
  return request({
    url: '/entrust/user/userDel',
    method: 'get',
    params
  })
}
// 重置密码/entrust/user/resetPwd?
export function resetPwd(params) {
  return request({
    url: '/entrust/user/resetPwd',
    method: 'get',
    params
  })
}













//---角色列表------------------
export function roleList(params) {
  return request({
    url: '/entrust/role/roleList',
    method: 'get',
    params
  })
}
// 角色可选权限列表
export function ruleTreeList() {
    return request({
      url: '/entrust/rule/ruleTreeList',
      method: 'get',
    })
}
// 添加角色
export function roleAdd(data) {
    return request({
      url: '/entrust/role/roleAdd',
      method: 'post',
      data
    })
}
// 角色修改
export function roleUpdate(data) {
    return request({
      url: '/entrust/role/roleUpdate',
      method: 'post',
      data
    })
}
// 角色删除
export function roleDel(params) {
    return request({
      url: '/entrust/role/roleDel',
      method: 'get',
      params
    })
}

// --------------------------------------------


// ---------------处置需求发布---------------------------
//标的类型 
export function lotsType(params) {
  return request({
    url: '/entrust/EntrustLots/lotsType',
    method: 'get',
    params
  })
}

//添加处置信息（标的）/entrust/EntrustLots/LotsAdd
export function LotsAdd(data) {
  return request({
    url: '/entrust/EntrustLots/LotsAdd',
    method: 'post',
    data
  })
}

// 获取标的列表/entrust/EntrustLots/lotsList
export function lotsList(params) {
  return request({
    url: '/entrust/EntrustLots/lotsList',
    method: 'get',
    params
  })
}
// 添加处置基础信息（拍卖会）/entrust/EntrustAuction/AuctionAdd
export function AuctionAdd(data) {
  return request({
    url: '/entrust/EntrustAuction/AuctionAdd',
    method: 'post',
    data
  })
}
//AuctionEdit
export function AuctionEdit(data) {
  return request({
    url: '/entrust/EntrustAuction/AuctionUpdate',
    method: 'post',
    data
  })
}
// 标的详情查看/entrust/EntrustAuction/lotsExamine
export function lotsExamine(params) {
  return request({
    url: '/entrust/EntrustAuction/lotsExamine',
    method: 'get',
    params
  })
}



// ------标的发布--------------------------------------
// 处置物资列表/entrust/EntrustAuction/AuctionList
export function AuctionList(params) {
  return request({
    url: '/entrust/EntrustAuction/AuctionList',
    method: 'get',
    params
  })
}

// 提交/entrust/EntrustAuction/submit/
export function submitEntrustAuction(params) {
  return request({
    url: '/entrust/EntrustAuction/submit',
    method: 'get',
    params
  })
}
// 发布/entrust/EntrustAuction/submit/
export function issueEntrustAuction(params) {
  return request({
    url: '/entrust/EntrustAuction/issue',
    method: 'get',
    params
  })
}

//驳回 /entrust/EntrustAuction/reject
export function rejectEntrustAuction(params) {
  return request({
    url: '/entrust/EntrustAuction/reject',
    method: 'get',
    params
  })
}
// 点击查看
// /entrust/EntrustAuction/examine
export function examineEntrustAuction(params) {
  return request({
    url: '/entrust/EntrustAuction/examine',
    method: 'get',
    params
  })
}


// ---------------交易管理-------------------------------------
// /entrust/Ledger/list 列表信息
export function Ledgerlist(params) {
  return request({
    url: '/entrust/Ledger/list',
    method: 'get',
    params
  })
}

//定标登记 /entrust/Ledger/calibrationRegistration
export function calibrationRegistration(params) {
  return request({
    url: '/entrust/Ledger/calibrationRegistration',
    method: 'get',
    params
  })
}

//定标操作 /entrust/Ledger/iscalibration
export function iscalibration(params) {
  return request({
    url: '/entrust/Ledger/iscalibration',
    method: 'get',
    params
  })
}
//定标登记-竞买人 /entrust/Ledger/bidderList
export function bidderList(params) {
  return request({
    url: '/entrust/Ledger/bidderList',
    method: 'get',
    params
  })
}
//定标登记-竞价记录 /entrust/Ledger/bidRecord
export function bidRecord(params) {
  return request({
    url: '/entrust/Ledger/bidRecord',
    method: 'get',
    params
  })
}

// 交割登记信息/entrust/Ledger/quadruplicate?id=1
export function quadruplicate(params) {
  return request({
    url: '/entrust/Ledger/quadruplicate',
    method: 'get',
    params
  })
}
//添加交割记录 /entrust/Ledger/addDelivery
export function addDelivery(data) {
  return request({
    url: '/entrust/Ledger/addDelivery',
    method: 'post',
    data
  })
}

//结算弹窗信息 /entrust/Ledger/statement
export function statementLedger(params) {
  return request({
    url: '/entrust/Ledger/statement',
    method: 'get',
    params
  })
}

//可选交割记录 /entrust/Ledger/deliveryList
export function deliveryListLedger(params) {
  return request({
    url: '/entrust/Ledger/deliveryList',
    method: 'get',
    params
  })
}

// 完成结算/entrust/Ledger/completeSettlement
export function completeSettlement(data) {
  return request({
    url: '/entrust/Ledger/completeSettlement',
    method: 'post',
    data
  })
}

// 诚信级别/entrust/Ledger/integrity_level
export function integrity_level(params) {
  return request({
    url: '/entrust/Ledger/integrity_level',
    method: 'get',
    params
  })
}

// 买受人评价/entrust/Ledger/score
export function scoreLedger(data) {
  return request({
    url: '/entrust/Ledger/score',
    method: 'post',
    data
  })
}

// =================================================
//钢价信息 /entrust/Quotation/quotationListTime
export function quotationListTime(params) {
  return request({
    url: '/entrust/Quotation/quotationListTime',
    method: 'get',
    params
  })
}
// /entrust/Quotation/StatisticsData
export function StatisticsData(params) {
  return request({
    url: '/entrust/Quotation/StatisticsData',
    method: 'get',
    params
  })
}

//=数值中心============================= 
// /entrust/Statistic/information
export function information(params) {
  return request({
    url: '/entrust/Statistic/information',
    method: 'get',
    params
  })
}
//数据统计列表 /entrust/Statistic/dispositionList
export function dispositionList(params) {
  return request({
    url: '/entrust/Statistic/dispositionList',
    method: 'get',
    params
  })
}
export function provincialStatistics(params) {
  return request({
    url: '/entrust/Statistic/provincialStatistics',
    method: 'get',
    params
  })
}
// =客户管理================================
// 评价记录
// /entrust/Client/scoreList
export function scoreList(params) {
  return request({
    url: '/entrust/Client/scoreList',
    method: 'get',
    params
  })
}
// ==资料下载===
export function listDataDownload(params) {
  return request({
    url: '/entrust/DataDownload/list',
    method: 'get',
    params
  })
}
// /entrust/DataDownload/lotsData?
export function lotsDataDownload(params) {
  return request({
    url: '/entrust/DataDownload/lotsData',
    method: 'get',
    params
  })
}

// /entrust/DataDownload/bidRecord
export function bidRecordDownload(params) {
  return request({
    url: '/entrust/DataDownload/bidRecord',
    method: 'get',
    params
  })
}

// /entrust/DataDownload/bidderList
export function bidderListDownload(params) {
  return request({
    url: '/entrust/DataDownload/bidderList',
    method: 'get',
    params
  })
}

// /entrust/DataDownload/finalStatement
export function finalStatement(params) {
  return request({
    url: '/entrust/DataDownload/finalStatement',
    method: 'get',
    params
  })
}